# API路由模块初始化
from fastapi import APIRouter
from .auth import router as auth_router
from .chat import router as chat_router
from .ai import router as ai_router
from .user import router as user_router

# 创建主路由
api_router = APIRouter(prefix="/api/v1")

# 包含各个子路由
api_router.include_router(auth_router, prefix="/auth", tags=["auth"])
api_router.include_router(user_router, prefix="/users", tags=["users"])
api_router.include_router(chat_router, prefix="/chat", tags=["chat"])
api_router.include_router(ai_router, prefix="/ai", tags=["ai"])

__all__ = ["api_router"]